package org.example.tomcat;


import jakarta.servlet.http.HttpServlet;

import java.util.HashMap;
import java.util.Map;

//servlet容器  我全局就一个
public class Context {

   public static Map<String, HttpServlet> urlServletMap=new HashMap<>();



   public static HttpServlet getServletByUrl(String url) {
       return urlServletMap.get(url);
   }

}
